<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    x:Class="OpenLS.Chart.UI.DataLabelResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:chart="http://schemas.Kherty.com/office/2007/chart"
    xmlns:chartui="clr-namespace:OpenLS.Chart.UI"
    xmlns:Internals="clr-namespace:OpenLS.Chart.UI.Internals"
>
    <DataTemplate DataType="{x:Type chart:NumericValue}" x:Key="DataLabelTemplate">
        <Grid 
            Margin="{Binding RelativeSource={RelativeSource Self}, Path=(chartui:SeriesElement.Marker).Size, Converter={x:Static Internals:ChartConverters.HalfConverter}}">
        <TextBlock Margin="4">
            <TextBlock.Text>
                <MultiBinding Converter="{x:Static Internals:ChartConverters.DataLabelConverter}">
                    <Binding />
                    <Binding RelativeSource="{RelativeSource Self}" Path="(chartui:SeriesElement.DataLabel)"/>
                </MultiBinding>
            </TextBlock.Text>
        </TextBlock>
        </Grid>
    </DataTemplate>
    
</ResourceDictionary>